Back to Basics: Deriving Representation Changers Functionally

نویسندگان

  • Graham Hutton
  • Erik Meijer
چکیده

A representation changer is a function that converts a concrete representation of an abstract value into a different concrete representation of that value. Many useful functions can be recognised as representation changers; examples include compilers, and arithmetic functions such as addition and multiplication. Functions that can be specified as the right inverse of other functions are special cases of representation changers. In recent years, a number of authors have used a relational calculus to derive representation changers from their specifications. In this paper we show that the generality of relations is not essential, and representation changers can be derived within the more basic setting of functional programming. We illustrate our point by deriving a carry-save adder and a base-converter, two functions which have previously been derived relationally.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

FUNCTIONAL PEARLS Back to Basics: Deriving Representation Changers Functionally

A representation changer is a function that converts a concrete representation of an abstract value into a different concrete representation of that value. Many useful functions can be recognised as representation changers; examples include compilers, and arithmetic functions such as addition and multiplication. Functions that can be specified as the right inverse of other functions are special...

متن کامل

Back to basics for Bayesian model building in genomic selection.

Numerous Bayesian methods of phenotype prediction and genomic breeding value estimation based on multilocus association models have been proposed. Computationally the methods have been based either on Markov chain Monte Carlo or on faster maximum a posteriori estimation. The demand for more accurate and more efficient estimation has led to the rapid emergence of workable methods, unfortunately ...

متن کامل

Buckling of Rectangular Functionally Graded Material Plates under Various Edge Conditions

In the present paper, the buckling problem of rectangular functionally graded (FG) plate with arbitrary edge supports is investigated. The present analysis is based on the classical plate theory (CPT) and large deformation is assumed for deriving stability equations. The plate is subjected to bi-axial compression loading. Mechanical properties of FG plate are assumed to vary continuously along ...

متن کامل

Back to Basics: Preventing Surgical Fires.

When fires occur in the OR, they are devastating and potentially fatal to both patients and health care workers. Fires can be prevented by understanding the fire triangle and methods of reducing fire risk, conducting fire risk assessments, and knowing how to respond if a fire occurs. This Back to Basics article addresses the basics of fire prevention and the steps that can be taken to prevent f...

متن کامل

Extending Operational Zone of Rotary Power Flow Controller by Controlling Tap-changers of Transformers

This paper proposes a method for extending the ability of rotary power flow controller (RPFC) using tap-changer of the RPFC’s transformers. A detailed model of the device is presented to analyze the effects of the tap changer operation on the performance of the RPFC. To evaluate the results, the RPFC model is simulated using PSCAD/EMTDC software. Dynamic operation of the RPFC on a 400 kV transm...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • J. Funct. Program.

دوره 6  شماره 

صفحات  -

تاریخ انتشار 1996